sass mixinによるBEMの簡略化
code:scss
@mixin element($name) {
@content;
}
}
@mixin modifier($name) {
@content;
}
}
.block {
color: red;
@include element(element) {
color: green;
@include modifier(modifier) {
color: blue;
}
}
}
.item
.item__
code:scss
@mixin